-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed icon fill colors #33607
Fixed icon fill colors #33607
Conversation
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
Waiting for https://expensify.slack.com/archives/C049HHMV9SM/p1703677023896169 to get an issue |
@Pujan92 Would you like to start the review in the meantime? |
Yes. |
We also need to remove the fill prop within |
This is not entirely possible as it uses 2 colors. We can use |
Sorry but I am not getting it, do you mean it is added intentionally to differentiate mask image for diff theme?
|
Nope, I am talking about creating a custom svg that switches colors on switching theme. And using that instead. See Lounge svg for reference |
@mountiny What's your opinion on #33607 (comment)? |
In reference to these screenshots, I think I have a slight preference for the left side (without fill prop), but honestly both look acceptable. @Expensify/design care to weigh in here? |
What exactly is the question? I'm a bit lost. Are we discussing how to handle the default bank account icon in light mode vs dark mode? If so, from a technical perspective, I don't feel too strongly in terms of how we implement it, but I do agree that each theme should use its respective colors for these default icons. |
The question is with the latest changes we landed on the right side screenshots, but seems it applied by mistake in that PR. So we were thinking of reverting that which makes it look like the left side(the way it was for long), but as we are not sure we wanted to clarify which side you prefer. |
@shawnborton the question is about this comment and screenshots in it specifically #33607 (comment) |
@shawnborton that sounds good to me! |
@shubham1206agra I believe that(mask image based on theme) should be handled in a separate issue as for this we are just correcting the prop set in the wrong places. Do you think the same? |
@shubham1206agra @Pujan92 Can we just do it here? I think its not big enough that it could not be added to this PR? Thanks design team for chiming in |
Yes, @shubham1206agra I think for maskimage below changes should work.
|
@dannymcclain @allroundexperts One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@allroundexperts Here @Pujan92 will do the review. Sorry for the tag. |
@Pujan92 let us know your eta, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Seems need to re-run the flow to consider a new reviewer checklist.
cc: @mountiny
Reviewer Checklist
Screenshots/Videos |
What exactly are we doing for the bank account icon? Is it the same image being used for both dark and light mode, or something else? I wonder if we should follow what we recently did for the fallback avatars where they are different based on the theme. @dubielzyk-expensify does that sound familiar, and if so, can you share what you had for those here? |
They are same before expo too, right? |
Yes, it is the same only. We haven't done anything here for the bank icon color, we just fix the color unnecessarily applied to entire icon for the native. |
What we have going on here is probably fine (same icon for both themes)—I mean it gets the job done for sure, but I am curious what it would look like with theme-specific colors and if that would be an easy-to-implement thing. |
This will require to create svg using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for testing @Pujan92 and for the PR @shubham1206agra!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.23-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.23-4 🚀
|
@@ -90,7 +90,7 @@ function ImageCropView(props) { | |||
<View style={[containerStyle, styles.l0, styles.b0, styles.pAbsolute]}> | |||
<Icon | |||
src={props.maskImage} | |||
fill={theme.icon} | |||
fill={theme.iconReversed} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason for keeping this value remained here only? I see all other fill
values are removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For applying maskImage based on theme we have kept that, comment ref
Details
Fixed Issues
$ #33664
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop